<%@page import="edu.cqupt.dao.Book"%>
<%@page import="java.util.List"%>
<%@page import="java.sql.ResultSet"%>
<%@page import="java.sql.Statement"%>
<%@page import="java.sql.DriverManager"%>
<%@page import="java.sql.Connection"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<div align="center">
		<h1>图书详情</h1>
		<table border="1">
			<tr>
				<th>图书id</th>
				<th>图书名</th>
				<th>作者名</th>
				<th>价格</th>
			</tr>
			<%
				Book book = (Book)request.getAttribute("bookDetails");
			%>
			<tr>
				<td><%= book.getBookId()%></td>
				<td><%= book.getBookName()%></td>
				<td><%= book.getAuthor()%></td>
				<td><%= book.getPrice()%></td>
			</tr>
		</table>
		<a href="list_all_book">返回图书列表</a>
	</div>
</body>
</html>